home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.eng.convex.com!arco!usenet
- From: Brian Leach <lasbfl@aai.arco.com>
- Subject: Re: Strange error
- X-Nntp-Posting-Host: 136.226.116.1
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <3172B913.1A03@aai.arco.com>
- Sender: usenet@news.arco.com
- Content-Transfer-Encoding: 7bit
- Organization: ARCO Alaska Inc.
- References: <1996Apr9.111558@winnie> <3172A47E.6FA@aai.arco.com>
- Mime-Version: 1.0
- Date: Mon, 15 Apr 1996 21:01:07 GMT
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/755)
-
- Brian Leach wrote:
- >
- > zhou@wmich.edu wrote:
- > >
- > > I have been stymied by an error which occurs during run time for
- > > certain programs I've written in TC++. What ever I do I cannot find the
- > > cause of it. The error says something to the effect of "Floating point
- > > error: Domain." or "Domain Error" and "abnormal program termination". What
- > > is usually the cause of this? Thanks.
- > >
- > > -Hanson
- > The probable cause is an invalid bit pattern for a floating point
- > value, possibly all of the bits in the mantissa are turned
- > off. Many compilers will treat these values as one of the
- > ANSI special values, +- infinity, Nan, or SNan. Some compilers
- > just report an error and quit.
- >
- > Check for un-aligned structures which have been laid over each other,
- > possibly through a union. Could also occur if a memcopy has been done
- > from one structure type to one of a differenct type.
- >
- > -Brian :-)
- Sorry,
-
- Correction to my previous post, I meant to say all bits in the
- mantissa are turned on, not off.
-
- -Brian :-(
- lasbfl@aai.arco.com
-